﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommonTagTime;
using CommonTagTime.ModelObject;
using CommonTagTime.Business;
public partial class StepByStepDetail : SitePage
{
    public TipNews objTip;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
             LoadData();
    }
    private void LoadData()
    {
        string title = string.Empty;
        int id = clsQueryString.GetInt("id");
        busTipNews objBus = new busTipNews();
        objTip = objBus.GetByID(id);
        if (objTip == null)
            objTip = new TipNews();
        if (objTip.PageTitle == string.Empty)
            title = objTip.Title;
        else title = objTip.PageTitle;
        this.SetMetaData(string.Format(Resources.Resource.TITLE, Server.HtmlEncode(title)), objTip.MetaDescription, objTip.MetaKeywords);
    }
    protected void btnback_Click(object sender, EventArgs e)
    {
        Response.Redirect("/step-by-step");
    }
}